﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shop.Model.Dto.User
{
    /// <summary>
    /// 用户密码登录
    /// </summary>
    public class PasswordLoginDto
    {
        /// <summary>
        /// 电话号码
        /// </summary>
        [Required(ErrorMessage = "电话号码不可为空"), StringLength(11, ErrorMessage = "请输入正确的电话号码")]
        public string Telphone { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码不可为空")]
        public string Password { get; set; }
    }
}
